ACLOCAL_AMFLAGS=-I m4

SUBDIRS = jsonrpc

sbin_PROGRAMS = virtio_net_controller

noinst_HEADERS = virtnet_rpc.h virtnet_controller.h

virtio_net_controller_CFLAGS = $(BASE_CFLAGS) \
			       -I$(top_builddir)/libvirtnet \
			       -I$(top_builddir)/libmlxdevm/lib \
			       -I$(top_builddir)/controller/jsonrpc

virtio_net_controller_SOURCES = virtnet_controller.c \
				virtnet_rpc.c \
				virtnet_signal_handler.c

virtio_net_controller_LDFLAGS = -static -lsnap -lsnap-virtio-net-ctrl
virtio_net_controller_LDADD = $(top_builddir)/libvirtnet/libvirtnet.la \
			      $(top_builddir)/libmlxdevm/lib/libmlxdevm.la \
			      $(top_builddir)/controller/jsonrpc/libjsonrpcc.la
